<%
var containerParam = {
	title: '我的从者',
	currentMenu: 'myServant',
	jsArray: [ctxPath + '/js/myServant/form.js'],
	breadcrumbMap: {
		'首页': ctxPath + '/',
		'我的从者': ctxPath + '/myServant/list',
		'添加/编辑': null
	}
};
layout('/common/_website_container.html', containerParam){
%>
<div class="layui-card">
	<div class="layui-card-body padding-15">
		<form class="layui-form" lay-filter="form">
			<#formhidden name="id"/>
			<#forminput label="*从者" id="servantId" value="${servant.name!}" verify="required" readonly=""/>
			<#formhidden name="servantId"/>
			<% if (isEmpty(entity.getDate)) { %>
			<#forminput label="获得日期" name="getDate" placeholder="填写后不可更改" readonly=""/>
			<% } else { %>
			<#forminput label="获得日期" name="getDate" value="${@DateUtils.toString(entity.getDate, 'yyyy-MM-dd')}" disabled=""/>
			<% } %>
			<div class="layui-form-item">
				<label class="layui-form-label">再临阶段</label>
				<div class="layui-input-inline">
					<select name="stage" lay-search>
						<option value="">当前</option>
						<% for (servantStage in @ServantStage.values()) { %>
						<option value="${servantStage.value}"<% if (servantStage == entity.stage!) { %> selected<% } %>>${servantStage.desc}</option>
						<% } %>
					</select>
				</div>
				<div class="layui-form-mid">→</div>
				<div class="layui-input-inline">
					<select name="toStage" lay-search>
						<option value="">目标</option>
						<% for (servantStage in @ServantStage.values()) { %>
						<option value="${servantStage.value}"<% if (servantStage == entity.toStage!) { %> selected<% } %>>${servantStage.desc}</option>
						<% } %>
					</select>
				</div>
			</div>
			<#formnumber label="圣杯数" name="holyGrail" min="0" max="10" prec="0"/>
			<#formnumber label="等级" name="level" min="1" max="100" prec="0"/>
			<#formnumber label="hp强化" name="ffHp" min="0" max="2000" prec="0"/>
			<#formnumber label="atk强化" name="ffAtk" min="0" max="2000" prec="0"/>
			<#formnumber label="羁绊值" name="bondValue" min="0" prec="0"/>
			<div class="layui-form-item">
				<label class="layui-form-label">技能1等级</label>
				<div class="layui-input-inline">
					<input type="text" class="layui-input layui-input-number" placeholder="当前"
							name="skill1" value="${entity.skill1!}" min="0" max="10" data-prec="0">
				</div>
				<div class="layui-form-mid">→</div>
				<div class="layui-input-inline">
					<input type="text" class="layui-input layui-input-number" placeholder="目标"
							name="toSkill1" value="${entity.toSkill1!}" min="0" max="10" data-prec="0">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">技能2等级</label>
				<div class="layui-input-inline">
					<input type="text" class="layui-input layui-input-number" placeholder="当前"
							name="skill2" value="${entity.skill2!}" min="0" max="10" data-prec="0">
				</div>
				<div class="layui-form-mid">→</div>
				<div class="layui-input-inline">
					<input type="text" class="layui-input layui-input-number" placeholder="目标"
							name="toSkill2" value="${entity.toSkill2!}" min="0" max="10" data-prec="0">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">技能3等级</label>
				<div class="layui-input-inline">
					<input type="text" class="layui-input layui-input-number" placeholder="当前"
							name="skill3" value="${entity.skill3!}" min="0" max="10" data-prec="0">
				</div>
				<div class="layui-form-mid">→</div>
				<div class="layui-input-inline">
					<input type="text" class="layui-input layui-input-number" placeholder="目标"
							name="toSkill3" value="${entity.toSkill3!}" min="0" max="10" data-prec="0">
				</div>
			</div>
			<#formnumber label="宝具等级" name="npLevel" min="1" max="5" prec="0"/>
			<#formsubmit/>
		</form>
	</div>
</div>
<% } %>
